package wpmp.auth.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import wpmp.auth.dao.KeyValueDao;
import wpmp.utils.quickbean.KeyValue;

/**
 * @author Wayne.Wang<5waynewang@gmail.com>
 * @since 3:07:37 PM Dec 26, 2012
 */
@Component
public class KeyValueService extends BaseService {

	private KeyValueDao dao;

	public KeyValueDao getDao() {
		return dao;
	}

	@Autowired
	public void setDao(KeyValueDao dao) {
		this.dao = dao;
	}

	public KeyValue queryForObject(String key) {
		return dao.queryForObject(key);
	}

	public List<KeyValue> queryForList() {
		return dao.queryForList();
	}
}
